﻿using System.Data.Entity.ModelConfiguration;
using ProjetoComperio.DataLayer.Entities;

namespace ProjetoComperio.DataLayer.Configuration
{
    public class ContextConfiguration : EntityConfiguration<Context>
    {
        public ContextConfiguration()
        {
            Property(c => c.ContextID).IsIdentity();
            MapHierarchy(
            c => new
            {
                c.ContextID,
                c.Description
            }
        ).ToTable("Context");
        }
    }
}
